package com.atguigu.schedule.controller;

import com.atguigu.schedule.common.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试控制器
 * 
 * @author atguigu
 * @since 2024
 */
@RestController
@RequestMapping("/test")
public class TestController {

    /**
     * 健康检查接口
     * 
     * @return 测试结果
     */
    @GetMapping("/health")
    public Result<String> health() {
        return Result.ok("Spring Boot应用运行正常！");
    }
}
